package com.iddactylogram.controller;

import com.iddactylogram.common.core.SeqIdProvider;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/id/gen/")
public class IdGenController {

    @GetMapping("nextId")
    public Long getNextId(String appName) {
        return SeqIdProvider.genId(appName);
    }
}
